package com.tarena.lbs.business.base.enums;

import com.tarena.lbs.base.protocol.enums.ErrorCodeSupport;
import lombok.Getter;

/**
 * 用户组异常枚举类
 * 用于定义用户组相关业务的错误码和错误信息
 */
@Getter
public enum BusinessGroupResultEnum implements ErrorCodeSupport {
    // 商家组业务状态码 (从6000开始，避免与其他模块冲突)
    BUSINESS_NAME_EXIST("6000","商家名称已存在" ),
    USER_ROLE_ERROR("6100","用户角色错误" ),
    //经纬度
    PARAM_ERROR("6200","经纬度参数格式错误"),
    //店铺服务
    STORE_NOT_FOUND("6300","附近20km范围内未找到店铺");

    BusinessGroupResultEnum(String code, String message) {
        this.code = code;
        this.message = message;
    }

    private final String code;
    private final String message;


    @Override
    public String getCode() {
        return code;
    }

    @Override
    public String getMessage() {
        return message;
    }
}